<%= startmapsetup %>
			var center = new GLatLng(41.875696, -87.624207);
			if($("#landmarks_lat").attr("value") != "") {
				center = new GLatLng($("#landmarks_lat").attr("value"),$("#landmarks_lng").attr("value"));
			}
			var landicon = new GIcon(G_DEFAULT_ICON);
			landicon.image = "/images/landmark.png"
			var marker = new GMarker(center,{draggable: true,icon:landicon});

			/*GEvent.addListener(marker,"dragstart",function() 
			{ map.closeInfoWindow(); }
			);*/

			GEvent.addListener(marker,"dragend",function()
			{
				var coords = marker.getLatLng();
				$("#landmarks_lat").attr("value",coords.lat());
				$("#landmarks_lng").attr("value",coords.lng());
			});
			map.addOverlay(marker);
<%= endmapsetup %>
	<div id="map_canvas" style="width: 420px; height: 300px;float:left"></div>
	<%= f.hidden_field(:lat) %>
	<%= f.hidden_field(:lng) %>
	
	<div style='float:right;'>	
	<p>
		<%= f.label :name %><br/>
		<%= f.text_field(:name) %>
	</p>
	<p>
		<%= f.label :description %><br/>
		<%= f.text_area(:description) %>
	</p>
	</div>
	<%= f.submit %>
	<p>
		<%= f.label (:image) %> (Less then 3 MB)<br/>
		<%= f.file_field :uploaded_data %>
	</p>
